home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / exec_exit < prev    next >
Encoding:
Text File  |  2001-03-21  |  786 b   |  29 lines

  1. Synopsis:
  2.    on [<modes>]exec_exit [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever an EXECed process exits.
  6.  
  7. Parameters:
  8.    $0    process number or name of the EXECed process
  9.    $1    signal that killed the process, or 0 (zero) if it exited normally
  10.    $2    exit code (usually zero, unless $1 is non-zero)
  11.  
  12. Examples:
  13.    To display when a process exits:
  14.       on ^exit_exec "*" {
  15.          if ( [$2] ) {
  16.             echo *** Process '$0' exited with code $2 \(signal $1\)
  17.          } {
  18.             echo *** Process '$0' exited normally
  19.          }
  20.       }
  21.  
  22. See Also:
  23.    exec(5); on(5) exec, exec_errors, exec_prompt
  24.  
  25. Other Notes:
  26.    The available signals that may be sent to a process will vary from system
  27.    to system.
  28.  
  29.